package com.imti.mall.sale.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.sms.pojo.SmsHomeAdvertise;
import com.imti.mall.model.sms.pojo.SmsHomeBrand;
import com.imti.mall.sale.mapper.SmsHomeAdvertiseMapper;
import com.imti.mall.sale.mapper.SmsHomeBrandMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

@Mapper
public interface SmsHomeAdvertiseDao extends BaseMapper<SmsHomeAdvertise> {

    /**
     * 查询首页轮播广告表
     */
    @SelectProvider(type= SmsHomeAdvertiseMapper.class,method = "findSmsHomeAdvertise")
    public List<SmsHomeAdvertise> findSmsHomeAdvertise(SmsHomeAdvertise smsHomeAdvertise);

    /**
     * 修改首页轮播广告表
     * @param smsHomeAdvertise
     * @return
     */
    @UpdateProvider(type= SmsHomeAdvertiseMapper.class,method = "updateSmsHomeAdvertise")
    public Integer updateSmsHomeAdvertise(SmsHomeAdvertise smsHomeAdvertise);
}
